package com.itlong.cloud.noncore.miniprogram;

import com.itlong.cloud.POJO.DTO.smartcard.SmartCardQRCodeContentDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 *      小程序推送数据业务处理接口暴露
 * </desc>
 *
 * @createDate 2021/5/31
 **/
@FeignClient("non-core-service")
public interface IMiniProgramPushMessageServiceClient {

    /**
     * <desc>
     *      推送小程序消息
     * </desc>
     *
     * @param
     * @return
     * @Author Zhu.yj
     * @createDate  2021/5/31
     */
    @RequestMapping("/miniProgram/pushMessage")
    void pushMessage(@RequestParam("visitorId") String visitorId) throws Exception;

    /**
     * <desc>
     *      将线下平台传入访客信息存入缓存
     * </desc>
     *
     * @param
     * @return
     * @Author Zhu.yj
     * @createDate  2021/6/3
     */
    @RequestMapping("cacheVisitor")
    void cacheVisitor(@RequestBody SmartCardQRCodeContentDTO cardQRCodeContentDTO) throws Exception;
}
